<extend name="Base/common"/>
<block name="body"> 
    <section class="container">
      <div class="content-wrap">
        <div class="content">
        <if condition="$topAd">
           <div id="focusslide" class="carousel slide" data-ride="carousel">
            <ol class="carousel-indicators">
             <volist name="topAd" id="v">
              <li data-target="#focusslide" data-slide-to="{$key}"></li>
              </volist>
            </ol>
            <div class="carousel-inner" role="listbox">
            
            <volist name="topAd" id="v">
              <div class="item active">
                <a href="{$v['url']}" target="_blank" title="">
                  <img src="{$Think.const.STATIC_DOMAIN}{$v['img']}" alt="" class="img-responsive"></a>
              </div>
            </volist>
           

            </div>
            <a class="left carousel-control" href="#focusslide" role="button" data-slide="prev" rel="nofollow">
              <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
              <span class="sr-only">上一个</span></a>
            <a class="right carousel-control" href="#focusslide" role="button" data-slide="next" rel="nofollow">
              <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
              <span class="sr-only">下一 个</span></a>
          </div> 
          </if> 
              <volist name="recommend" id="r">
                  <article class="excerpt-minic excerpt-minic-index">
                    <h2>
                   
                        <span class="red">【推荐】</span>
                            <if condition="$r['count'] gt 1">
                            <a target="_blank" href="/detail/{$r.pin_yin.'&'.'id'.'='.$r.id}" title="">{$r.title}</a>
                            <else/>
                              <a target="_blank" href="/detail/{$r.pin_yin}" title="">{$r.title}</a>
                            </if>
                    
                    </h2>
                        <p class="note">{$r.description}</p>

                  </article>
                
              </volist>
            
          <div class="title">
           <if condition="0">

            <h3>最新发布</h3>
           
<!--            <div class="more">
              <a href="#" title="MZ-NetBlog主题">MZ-NetBlog主题</a>
              <a href="#" title="IT技术笔记">IT技术笔记</a>
              <a href="#" title="源码分享">源码分享</a>
              <a href="#" title="靠谱网赚">靠谱网赚</a>
              <a href="#" title="资讯分享">资讯分享</a></div>-->
              </if>
          </div>

          <volist name='lists' id='document' key="key">
          <article class="excerpt excerpt-1" style="">
            <header>
            <if condition="0">
                      <!--   <a class="cat" href="#" title="MZ-NetBlog主题">
                <i></i>&nbsp;
              </a> -->
               </if>
              <h2>
                <if condition="$document['count'] gt 1">
                   <a href="{:url_route('detail/'.$document['pin_yin'].'&'.'id'.'='.$document['id'])}" title="" target="_blank">{$document.title}</a>
                <else/>
                   <a href="{:url_route('detail/'.$document['pin_yin'])}" title="" target="_blank">{$document.title}</a>
                </if>
              </h2>
            </header>
            <p class="meta">
              <time class="time">
                <i class="glyphicon glyphicon-time"></i>&nbsp;{$document.create_time|date="Y-m-d",###}</time>
              <span class="views">
            <p class="note">
            
              {:substr_replace($document['description'],'...',370,strlen($document['description']))}
            
            </p></article>
            <if condition="0">
            <!-- 文章中间的广告 -->
            </if>
            <if condition="($key % 3 eq 0) && $centerAd[$key/3-1]['img']">
            <article class="excerpt-pic">
              <div class="content-block hot-content hidden-xs">
                <ul>
                  <li style="width: 100%">
                    <a  href="{$v['url']}"><img  src="{$Think.const.STATIC_DOMAIN}{$centerAd[$key/3-1]['img']}" alt="{$centerAd[$key/3-1]['title']}"  title="{$centerAd[$key/3-1]['title']}"></a>
                    <h3 class="seo-h"></h3></a>
                </li>
              </ul>
            </div>
          </article>
            </if>
          </volist>
          <div class="quotes" style="margin-top:15px">
            <if condition="$p eq 1">
                <span class="disabled">首页</span>
                <span class="disabled">上一页</span>
            <else />
                <a href="/index-1.html">首页</a>
                <a href="/index-{$p-1}.html">上一页</a>
            </if>
                <for start='1' end="$page">
                    <if condition="($p eq $i)">
                    <span class="current">{$i}</span>
                    <else />
                     <a href="/index-{$i}.html">{$i}</a>
                    </if>
                </for>
            <if condition="$p eq ($page-1)">
                <span class="disabled">下一页</span>
                <span class="disabled">尾页</span>
            <else />
                <a href="/index-{$p+1}.html">下一页</a>
                <a href="/index-{$page-1}.html">尾页</a>
            </if>
          </div>
        </div>
      </div>
      <aside class="sidebar">
        <if condition="$category">
          <div class="widget ">
            <h3>分类</h3>
            <div class="tag-cloud">
              <volist name="category"  id="data">
                 <a href="{$key}">{$data}</a> 
              </volist>
            </div>
          </div>
        </if>
         <div class="widget widget_sentence">
            <a href="{$articleRight['url']}" target="_blank" rel="nofollow" title="">
            <img  src="{$Think.const.STATIC_DOMAIN}{$articleRight['img']}" alt=""></a>
        </div>
        <div class="fixed">
            <if condition="$tags">
            <div class="widget ">
              <h3>标签云</h3>
              <div class="tag-cloud">
                <volist name="tags"  id="data">
                   <a href="{$data['name']}&flag=1">{$data['tag_name']}</a> 
                </volist>
              </div>
            </div>
            </if>
        </div>
        <div class="widget widget_sentence">
            <h3>最新资讯</h3>
            <div class="widget-tabs">
              <div class="tab-content">
                <ul>
                  <volist name="newDoc" id="v">
                    <li>
                      <if condition="$v.count gt 1">
                          <time datetime="{:date('Y-m-d',$v['create_time'])}">{:date('m-d',$v['create_time'])}</time>
                          <a href="detail/{$v['pin_yin']}&id={$v['id']}" target="_blank" draggable="false">{$v['title']}</a></li>
                          
                      <else/>
                          <time datetime="{:date('Y-m-d',$v['create_time'])}">{:date('m-d',$v['create_time'])}</time>
                          <a href="detail/{$v['pin_yin']}" target="_blank" draggable="false">{$v['title']}</a></li>
                      </if>
                    <li>
                  </volist>
                </ul>
              </div>
            </div>
          </div
      </aside>
    </section>  
</block>